#!/bin/sh


 if [ ! -f "/mnt/index.php" ]; then
     if [ ! -f "/mnt/install.php" ]; then
            curl -o /mnt/install.zip http://cdn.w7.cc/download/WeEngine-Laster-Online.zip
            unzip /mnt/install.zip
     fi       
fi 

 if [ ! -f "/mnt/router.php" ]; then
     cp /home/router.php /mnt/router.php
fi 

php -S 0.0.0.0:9000 /mnt/router.php -t /mnt